/*
 * Created on 21.07.2006 by leck
 *
 */
package de.devisnik.shifting.impl;

import org.eclipse.swt.graphics.Point;

import de.devisnik.shifting.IPiece;


public class Piece implements IPiece {

    private String itsLabel;
    public int itsPosY;
    public int itsPosX;
    private Point itsHomePosition;

    public Piece(int posX, int posY, String label) {
        setPosition(posX, posY);
        itsLabel = label;
        itsHomePosition = new Point(posX, posY);
    }

    public String getLabel() {
        return itsLabel;
    }

    public Point getPosition() {
        return new Point(itsPosX, itsPosY);
    }

    void setPosition(int posX, int posY) {
        itsPosX = posX;
        itsPosY = posY;
    }

    public Point getHomePosition() {
        return itsHomePosition;
    }
}
